#include "cobjectmanager.h"

CObjectManager * CObjectManager::m_instance = 0;

CObjectManager::CObjectManager(QObject *parent) :
    Aggregation::Aggregate(parent)
{
    if (m_instance)
        qWarning("CObjectManager has other instance.");
    m_instance = this;
}

CObjectManager::~CObjectManager()
{
    m_instance = 0;
}

CObjectManager * CObjectManager::instance()
{
    return m_instance;
}
